package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.*;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public interface OrderService extends IService<Orders> {

    OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);



    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    PageResult queryHistoryOrders(int page, int pageSize, Integer status);

    void repetition(Long id);

    OrderVO getOrderDetailById(Long id);

    void cancelOrderById(Long id);

    void payment(OrdersPaymentDTO ordersPaymentDTO);

    void rejection(OrdersRejectionDTO ordersRejectionDTO);

    void confirmById(OrdersConfirmDTO ordersConfirmDTO);

    void cancel(OrdersCancelDTO ordersCancelDTO);

    OrderStatisticsVO statisticsOrder();

    void delivery(Long id);

    void complete(Long id);

    void reminder(Long id);

    TurnoverReportVO turnoverStatistics(LocalDate begin, LocalDate end);

    OrderReportVO ordersStatistics(LocalDate begin, LocalDate end);

    SalesTop10ReportVO top10(LocalDate begin, LocalDate end);

    BusinessDataVO queryBusinessData(LocalDateTime beginTime, LocalDateTime endTime );

    OrderOverViewVO queryOrderOverViewVO();
}
